/**
 * 
 */
package com.business.img.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.business.img.entity.ImgTag;
import com.business.img.service.ImgTagService;
import com.github.pagehelper.PageInfo;
import com.phiz.common.base.BaseController;
import com.phiz.common.base.Result;

/**
 *<p>@ClassName: ImgTagController</p>
 *<p>@Description: TODO(这里用一句话描述这个类的作用)</p>
 *<p>@author 淳峰</p>
 *<p>@date 2018年11月14日 下午10:28:25</p>
 *<p></p>
*/

@Controller
@RequestMapping("/img/tag")
public class ImgTagController extends BaseController{

	@Autowired
	private ImgTagService tagService;
	
	
	@RequestMapping("/page")
	@ResponseBody
	public Result page(Integer pageSize,Integer pageNum,ImgTag tag) {
		PageInfo<ImgTag> page = tagService.findPage(pageSize, pageNum, tag);
		return SUCCESS(page);
	}
}
